<template>
  <div>
    <Header></Header>
    <router-view></router-view>
    <Footer v-show='!$route.meta.isHiddenFooter'></Footer>
  </div>
</template>

<script>
// v-show='$router.meta.isHi'
import Header from './components/Header/index.vue'
import Footer from './components/Footer/index.vue'
export default {
  name: 'App',
  components: {
    Header,
    Footer,
  },
  mounted(){
    
    //在组件挂载时获取三级导航数据，就不用Home页面和Search页面都发请求获取数据
    // this.$store.dispatch('getCategoryList')
    // 开启模块化的方法调用方式
    this.$store.dispatch('home/getCategoryList')
  }
}
</script>

<style>

</style>
